<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">合作单位信息</h4>
</div>


<div class="modal-body">
    <form role="form" class="validator_form" action="{:url('/Index/Project/Company/edit')}" id="editCompanyForm" method="post">
        <input type="hidden" name="id" value="{$info.id?=$info.id}">
        <div class="box-body">

            <div class="form-group">
                <label>公司名称</label>
                <input type="text" name="name" class="form-control" id="name" required placeholder="公司名称" value="{$info.name?=$info.name}">
            </div>
            <div class="form-group">
                <label>公司类型</label>
                <select name="c_type" class="form-control" id="c_type" required>
                                {volist name="company_cat" id="vo" key="key"} 
                                <option value="{$vo.m_value}" {$vo['m_value']==$info['c_type']?'selected="selected"':''}>{$vo.m_name}</option>
                                {/volist}
                        </select>
            </div>
            <div class="form-group">
                <label>联系人</label>
                <input type="text" name="contact" class="form-control" id="contact" required placeholder="联系人" value="{$info.contact?=$info.contact}">
            </div>
            <div class="form-group">
                <label>电话</label>
                <input type="text" name="phone" class="form-control" id="phone" required placeholder="电话" value="{$info.phone?=$info.phone}">
            </div>
            <div class="form-group">
                <label>职位</label>
                <input type="text" name="position" class="form-control" id="position" required placeholder="职位" value="{$info.position?=$info.position}">

            </div>
            <div class="form-group">
                <label>备注</label>
                <input type="text" name="remark" class="form-control" id="remark" placeholder="备注" value="{$info.remark?=$info.remark}">
            </div>



        </div>

        <div class="box-footer">
            <button type="submit" class="btn btn-primary">确认</button>
        </div>
    </form>
</div>
<!-- /.box-body -->
<script>
    $(function() {
        ajax_form_submit("editCompanyForm");
    });
</script>